package com.wcs.exam.controller.admin.req;

import com.wcs.exam.common.base.annotation.SchemaEnum;
import com.wcs.exam.common.enums.MenuTypeEnum;
import com.wcs.exam.common.enums.StatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * Admin-菜单信息-编辑-请求参数
 * </p>
 *
 * @author wcs
 * @since 2024-07-06
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-菜单信息-编辑-请求参数")
public class AdminSysMenuEditReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "system.sys.menu.id.not.null")
    @Schema(description = "主键")
    private Long id;

    @NotNull(message = "system.sys.menu.parent.id.not.null")
    @Schema(description = "父ID")
    private Long parentId;

    private Boolean isShow;

    @Schema(description = "使用布局(1使用，0禁用)")
    private Boolean isLayout;

    @NotNull(message = "system.sys.menu.menu.type.not.null")
    @SchemaEnum(value = MenuTypeEnum.class)
    private Integer menuType;

    @NotBlank(message = "system.sys.menu.menu.name.not.null")
    @Schema(description = "菜单名称")
    private String menuName;

    @Schema(description = "菜单图标")
    private String menuIcon;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "后端接口")
    private String apis;

    @Schema(description = "前端权限")
    private String permission;

    @Schema(description = "备注")
    private String remark;

    @SchemaEnum(value = StatusEnum.class, description = "状态")
    private Integer status;

    @Schema(description = "排序")
    private Integer sort;
}
